<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    .header {
      text-align: center;
    }
    .box {
      width: 1500px;
      height: 30px;
      margin: 20px;
    }
    .lt {
      display: inline-block;
    }
    .gt {
      width: 500px;
      float: right;
    }
    a {
      text-decoration: none;
      color: slateblue;
      padding: 0 10px;
    }
    .content {
      width: 100%;
      height: 330px;
      position: relative;
    }
    img {
      width: 500px;
      height: 330px;
      display: block;
      position: absolute;
      top: 0;
      left:500px;
      display: none;
    }
    .same {
      display: block;
    }
  </style>
</head>
<body>
  <div id="all">
    <div class="header">
      <h1>软件自动化测试一体化平台</h1>
    </div>
    <div class="box">
      <div class="lt">
        <!-- <a href="#" style="color: springgreen; font-size: 20px;">Automated Testing</a> -->
      </div>
      <div class="gt">
        <a class="right same" href="#">首页</a>
        <a class="right" href="#">UI测试</a>
        <a class="right" href="#">性能测试</a>
        <a class="right" href="#">联系我们</a>
      </div>
    </div>
    <div class="content">
      <img  class="same" src="html+css/picture/13.webp" alt="">
      <img src="html+css/picture/16.webp" alt="">
      <img src="html+css/picture/17.webp" alt="">
      <img src="html+css/picture/19.webp" alt="">
    </div>
  </div>
 
 
  <script>
    var all = document.getElementById('all');
    var a = document.getElementsByTagName('a');
    var img = document.getElementsByTagName('img');
    for(var i = 0; i < a.length; i++) {
      a[i].index = i;
      a[i].onclick = function() {
        for(var j = 0; j <a.length; j++) {
          a[j].className = '';
        }
        a[this.index].className = 'same';
        for (var k = 0; k < img.length; k++) {
          img[k].className = '';
        }
        img[this.index].className = 'same';
      }
    }
  </script>
</body>
</html>